
if PY3K
PYFLAGS = -python -py3
else
PYFLAGS = -python 
endif

protobuf_wrap.cxx:
	@SWIG_BIN@ -Wall -I. -I./io -c++ $(PYFLAGS) protobuf.i

_protobuf.so: protobuf_wrap.cxx
	@PYTHON@ setup.py build_ext --inplace


BUILT_SOURCES = protobuf_wrap.cxx _protobuf.so

clean:
	rm -rf *.so build
